package org.afs.gescol.core.dao.interfaces;

import java.util.List;

import org.afs.gescol.core.model.references.Cycle;

/**
 * Dao interface for school Cycle management
 * @autor Kobla GBENYO (kobla.gbenyo@gmail.com)
 */
public interface CycleDao {

    /**
     * Get Cycle model by its id.
     * @param id the id of the Cycle to get
     * @return the Cycle to get
     */
    Cycle getCycleById(Long id);

    /**
     * Get a list of Cycle models by their label.
     * @param label the label of the Cycle to get
     * @return the list of Cycle models those label matches with the providing label
     */
    List<Cycle> getCyclesByLabel(String label);

}
